<?php
include ('Punto.php');
session_start ();

if (isset ( $_SESSION ['nEntero'] )) {
	echo "N&uacute;mero entero: " . $_SESSION ['nEntero'];
	echo "\r\n<br>N&uacute;mero real: " . $_SESSION ['nReal'];
	echo "\r\n<br>Texto: " . $_SESSION ['texto'];
	
	$fecha = $_SESSION ['fecha'];
	echo "\r\n<br>Fecha: " . date_format ( $fecha, 'd-m-Y' );
	
	echo "\r\n<br>Array asociativo: ";
	foreach ( $_SESSION ['arrayAsociativo'] as $key => $value ) {
		echo "\r\n<br> $key $value";
	}
	
	$punto = $_SESSION['objeto'];
	$x = $punto->getX();
	$y = $punto->getY();
	echo "\r\n<br>Objeto punto x: $x y: $y";
	
	session_destroy ();
} else {
	echo "No puedes estar aqu&iacute;";
	?>
<form method="post" action="crearSesion.php">
	<input type="submit" value="Volver">
</form>
<?php
}

?>